const Route = require('koa-router')

const { login,info} = require('../controller/user')
const router = new Route()
router.post('/login', login) // 登录

router.get('/info',info) // 用户信息
router.post('/addSchool',require('../controller/schoolInfo').addSchool) 
router.get('/getSchool',require('../controller/schoolInfo').getSchool) 
router.get('/getPageList',require('../controller/schoolInfo').getPageList) 
router.post('/setSchoolMenu',require('../controller/schoolInfo').setSchoolMenu) 
router.post('/addUser',require('../controller/schoolInfo').adduser) 
router.post('/editTeacher',require('../controller/schoolInfo').editTeacher )
router.post('/editPassword',require('../controller/user').editPassword)
router.post('/getUserList',require('../controller/schoolInfo').getUserList)
// router.post('/getUser',getmerchantList) // 获取商家

module.exports = router